package com.guoxin.chapter3.join.joinexception;

/**
 * @author guoxin
 * @date 2019年8月23日
 */
public class ThreadC extends Thread{
	public ThreadC() {
		setName("C");
	}

	private ThreadB threadB;

	public ThreadC(ThreadB threadB) {
		super();
		this.threadB = threadB;
	}
	
	@Override
	public void run() {
		threadB.interrupt();
	}
}
